// 查询列表数据
const getCoursePage = (params) => {
  return $axios({
    url: '/course/page',
    method: 'get',
    params
  })
}

// 修改数据接口
const editSetmeal = (params) => {
  return $axios({
    url: '/course',
    method: 'put',
    data: { ...params }
  })
}

// 新增数据接口
const addCourse = (params) => {
  return $axios({
    url: '/course',
    method: 'post',
    data: { ...params }
  })
}

const deleteCourse = (ids) => {
  return $axios({
    url: '/course',
    method: 'delete',
    params: { ids }
  })
}

const courseStatusByStatus = (params) => {
  return $axios({
    url: `/course/status/${params.status}`,
    method: 'post',
    params: { ids: params.ids }
  })
}

